package wanbang.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import wanbang.service.AddCartService;

@Controller
public class AddCartController {
	@Autowired
	private AddCartService addCartService;
	@RequestMapping("/addCart")
	public void addCart(Integer bookId,Integer userId) {
		this.addCartService.addCart(bookId,userId);
	}
}
